<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>摊位信息添加修改页</title>
<%@ include file="../inc.jsp" %>
<script type="text/javascript">
	//所有的子窗体都需要有一个save函数，当点击弹出窗体的保存按钮时所进行的操作
	function btnSave_click()
	{
	    var fun_ret = false;
	   var vals =$('#formTraincontent').serialize();
	   var url = '${baseUrl }/admin/booth/save';
	   var valid = $('#formTraincontent').form('validate');
	   if(valid){
		   $.ajax({
		       async: false, 
		       type: "POST", 
		       url : url,
		       data:vals,
		       cache:false,
		       dataType : 'json', 
		       success : function(data) { 
		           if(data.success!=0)
		           {
		               top.Ext.Msg.alert("提示",data.msg);
		           }
		           else
		           {
		               fun_ret = true;
		           }
		       } 
		   });
	   }
	   return fun_ret;
	}
</script>
</head>
<body>
	<div style="padding:1px">
	    <form id="formTraincontent" method="post">
	    	<input id="id" type="hidden" name="booth.id" value="${item.id}">
	    	<table border="0" cellspacing="0" cellpadding="0" style="">
	    		<tr>
	    			<td >摊位名称:</td>
	    			<td><input class="easyui-validatebox textbox" name="booth.name" maxlength="100" value="${item.name}" data-options="required:true,tipPosition:'left'" style="width:180px"/></td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td >摊位编号:&nbsp;&nbsp;</td>
	    			<td><input class="easyui-validatebox textbox" name="booth.num" maxlength="100" value="${item.name}" data-options="required:true,tipPosition:'left'" style="width:180px"/></td>
	    		</tr>
	    		<tr>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    		</tr>
	    		<tr>
	    			<td >占地面积:</td>
	    			<td><input class="easyui-validatebox textbox" name="booth.area" maxlength="100" value="${item.area}" data-options="required:true,tipPosition:'left'" style="width:180px"/></td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td ></td>
	    			<td></td>
	    		</tr>
	    		<tr>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    			<td>&nbsp;&nbsp;</td>
	    		</tr>
	    		<tr>
	    			<td>详细地址:&nbsp;&nbsp;</td>
	    			<td colspan="5"><textarea class="easyui-validatebox textbox" rows="3" id="address" style="width:437px" name="booth.address" >${item.address}</textarea></td>
	    		</tr>
	    	</table>
	    </form>
	</div>

</body>
</html>